<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui"
                xmlns:f="http://java.sun.com/jsf/core"
                template="/templates/mainLayout.xhtml">

    <ui:define name="title">#{loginMsg['title']}</ui:define>
    <ui:define name="content">
        <h:form id="contentForm">
            <p:panel header="#{loginMsg['login']}" style="width: 50%; margin-top: 10px; margin-left: auto; margin-right: auto;">
                <p:messages id="msgs"/>
                <h:outputText value="Open ID Confirmation Failed. No information was retrieved from the OpenID Provider."
                              rendered="#{param['error']}"/>
                <br/>
                <input type="hidden" id="identifier" name="identifier" value=""/>
                <p:commandButton id="bGoogle" type="submit" action="#{openIdBean.selectOPAction}" value="Google" ajax="false" 
                                 onclick="document.getElementById('identifier').value='https://www.google.com/accounts/o8/id'"/>
                <p:commandButton id="bYahoo" type="submit" action="#{openIdBean.selectOPAction}" value="Yahoo" ajax="false" 
                                 onclick="document.getElementById('identifier').value='https://me.yahoo.com'"/>
                <p:commandButton id="bVFriends" type="submit" action="#{openIdBean.selectOPAction}" value="VFriends ID" ajax="false" 
                                 onclick="document.getElementById('identifier').value='#{request.requestURL.substring(0, request.requestURL.length() - request.requestURI.length())}#{request.contextPath}/op'"/>
            </p:panel>
        </h:form>
    </ui:define>
</ui:composition>